package br.com.usp.shared;

 
import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Processo extends BMMRepresentation  implements IsSerializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private  ArrayList<FlowObjectsProcessDTO>  listaFluxo;
	private  ArrayList<ConnectoresProcessDTO>  listaConnector;
	private  ArrayList<ConnectoresProcessDTO>  listaConnectorBMM;
	private  ArrayList<ConnectoresProcessDTO>  listaConnectorBMMtoProcess;
 
	private  ArrayList<BusinessPolicy> listaPolicy;
	private  ArrayList<BusinessRule>  listaRule;
	private  ArrayList<OrganizationUnit> listaUnit;
	private  ArrayList<Lane> listaLane;
    private  ArrayList<CourseOfAction> listaCourses;
	private  ArrayList<KPI> listaKPI;
	private  Owner          owner;
	
	public Processo(){
		listaFluxo = new ArrayList<FlowObjectsProcessDTO>();
        listaConnector = new ArrayList<ConnectoresProcessDTO>();
        listaPolicy   = new ArrayList<BusinessPolicy>();
        listaRule     = new ArrayList<BusinessRule>();
        listaUnit     = new ArrayList<OrganizationUnit>();
        listaLane     = new ArrayList<Lane>();
        listaConnectorBMM  = new ArrayList<ConnectoresProcessDTO>();
        listaConnectorBMMtoProcess = new ArrayList<ConnectoresProcessDTO>();
        listaCourses = new ArrayList<CourseOfAction>();
        listaKPI = new ArrayList<KPI>();
        owner    = new Owner();
	}
	
	public Processo(BMMDTO bmm)
    {
		    this();
	    	setId(bmm.getId());
	    	setDescricao(bmm.getDescricao());
	    	setRepresentacao(bmm.getRepresentacao());
	    	setLeft(bmm.getLeft());
	    	setTop(bmm.getTop());
	    	setTipo(bmm.getTipo());
	}
	

	public ArrayList<KPI> getListaKPI() {
		return listaKPI;
	}




	public void setListaKPI(ArrayList<KPI> listaKPI) {
		this.listaKPI = listaKPI;
	}




	public Owner getOwner() {
		return owner;
	}




	public void setOwner(Owner owner) {
		this.owner = owner;
	}




	public ArrayList<CourseOfAction> getListaCourses() {
		return listaCourses;
	}




	public void setListaCourses(ArrayList<CourseOfAction> listaCourses) {
		this.listaCourses = listaCourses;
	}




	public ArrayList<FlowObjectsProcessDTO> getListaFluxo() {
		return listaFluxo;
	}

	public void setListaFluxo(ArrayList<FlowObjectsProcessDTO> listaFluxo) {
		this.listaFluxo = listaFluxo;
	}

	public ArrayList<ConnectoresProcessDTO> getListaConnector() {
		return listaConnector;
	}

	public void setListaConnector(ArrayList<ConnectoresProcessDTO> listaConnector) {
		this.listaConnector = listaConnector;
	}

	 

	public ArrayList<BusinessPolicy> getListaPolicy() {
		return listaPolicy;
	}

	public void setListaPolicy(ArrayList<BusinessPolicy> listaPolicy) {
		this.listaPolicy = listaPolicy;
	}

	public ArrayList<BusinessRule> getListaRule() {
		return listaRule;
	}

	public void setListaRule(ArrayList<BusinessRule> listaRule) {
		this.listaRule = listaRule;
	}

	public ArrayList<OrganizationUnit> getListaUnit() {
		return listaUnit;
	}

	public void setListaUnit(ArrayList<OrganizationUnit> listaUnit) {
		this.listaUnit = listaUnit;
	}

	public ArrayList<Lane> getListaLane() {
		return listaLane;
	}

	public void setListaLane(ArrayList<Lane> listaLane) {
		this.listaLane = listaLane;
	}

	public ArrayList<ConnectoresProcessDTO> getListaConnectorBMM() {
		return listaConnectorBMM;
	}

	public void setListaConnectorBMM(ArrayList<ConnectoresProcessDTO> listaConnectorBMM) {
		this.listaConnectorBMM = listaConnectorBMM;
	}

	public ArrayList<ConnectoresProcessDTO> getListaConnectorBMMtoProcess() {
		return listaConnectorBMMtoProcess;
	}

	public void setListaConnectorBMMtoProcess(
			ArrayList<ConnectoresProcessDTO> listaConnectorBMMtoProcess) {
		this.listaConnectorBMMtoProcess = listaConnectorBMMtoProcess;
	}

	
	public String getTipo() {
		return "Process";
	}
	
	public String getRepresentacao() {
		return "btnProcess";
	}

	
}
